	
	function qrymylist_callback(data){
		var status = data.status;
		if(status==1){
			var url = data.url;
			var netGiftHtml="";
			var hrefData=url;
			netGiftHtml+='<a href='+hrefData+' style=" position:absolute; left:0; bottom:0; height:128px; width:100%; " target="_blank"></a><span class="closeGiftBox" style="position:absolute; right:0; top:0; width:35px; height:35px; cursor:pointer;"></span>'; 

			var bigBox=$("<div></div>").css({"width":"180px","height":"175px","background":"url(http://www.ccb.com/cn/v3/images/gift_bg.gif) no-repeat","position":"fixed","z-index":"20000","bottom":"60px","right":"0","display":"none"}).addClass("netGiftbox").html(netGiftHtml);
	
			bigBox.appendTo("body")
			$(".netGiftbox").slideDown(); 
				/*互联网礼品盒抽奖框-关闭按钮*/		
			$(".closeGiftBox").click(function(){ 
				$(this).parent().slideUp();
					
			});
		}else{ 
			
		}
	}
	function lottery_draw(){
		$.ajax({
			type: "get",
			cache:false,
			url: "http://tool.ccb.com/tran/WCCMainPlatV5?CCB_IBSVersion=V5&SERVLET_NAME=WCCMainPlatV5&TXCODE=CJ1001&PAGEID="+pageid,
			dataType: "jsonp",
			jsonp:"jcb",
			jsonpCallback:"qrymylist_callback",
		})
	}

/*
$(function(){
	var lotteryTime = setDate();
	if(lotteryTime>20160716000000 && lotteryTime<20160818000000){

	
		//var userType = $.cookie('userType');
		var halfLoginCustId = $.cookie('halfLoginCustId');
		var cs_cid = $.cookie('cs_cid');
		// var memberId = ['5070F61090D80FC683C7FCED0BDCD62D','2CC6F83D836317ED0A053FCFA8FAAEAE','E86CA21E4DE5ED56425E8DA362BB9EE6','27E197207E73A7440A053FCFA8FAAEAE','A163963B75A2BF9B41753D5E43208040','BDEE6E856E09990EAC2FA2706F199C60','A8982FD8947393CF','2CC6F83D836317ED0A053FCFA8FAAEAE','46941839A05F77CF','14F2267FD60F670C425E8DA362BB9EE6','7EB78B358E0EA334AC2FA2706F199C60','F310EEE728F72C8C425E8DA362BB9EE6','3F049BDEE2FD54CB425E8DA362BB9EE6'];
		// for(var i=0;i<memberId.length;i++){
			// if(memberId[i]==halfLoginCustId){
				// lottery_draw();
			// }
		// }
		if(halfLoginCustId || cs_cid){

			lottery_draw();
		}
	}	
})
*/
function setDate(){
	var date = new Date();
	var year = date.getFullYear();
	var month = date.getMonth()+1;
	if(month<10){month="0"+month;}
	var day = date.getDate();
	if(day<10){day="0"+day;}
	var hours = date.getHours();
	if(hours<10){hours="0"+hours;}
	var minutes = date.getMinutes();
	if(minutes<10){minutes="0"+minutes;}
	var seconds = date.getSeconds();
	if(seconds<10){seconds="0"+seconds;}
	var dateNow = year+month+day+hours+minutes+seconds;
	return dateNow;
}